package sonido;
import java.io.*;
import sun.audio.*;

public class Sonido {

    private String direccion;

    public Sonido(String direccion) {
        this.direccion = direccion;
    }
    public void reproducir() throws FileNotFoundException, IOException{
        
        InputStream in = new FileInputStream(direccion);

        AudioStream audio = new AudioStream(in);

        AudioPlayer.player.start(audio);   
    }
}
